package com.zq.assistant.func.db.table;

import com.zq.db.annotation.Column;
import com.zq.db.annotation.Table;
import com.zq.db.annotation.Type;
import com.zq.db.bean.CachedReflectSQLBean;

/**
 * Created by zhangqiang on 17-6-20.
 */
@Table(name = "t_download")
public class DownloadInfo extends CachedReflectSQLBean {

    @Column(type = Type.INTEGER,primaryKey = true)
    private Integer _id;

    @Column(type = Type.TEXT)
    private String url;

    @Column(type = Type.INTEGER)
    private int contentLength;

    @Column(type = Type.INTEGER)
    private int currentLength;

    @Column(type = Type.TEXT)
    private String filePath;

    @Column(type = Type.TEXT)
    private String fileName;

    public int get_id() {
        return _id;
    }

    public void set_id(int _id) {
        this._id = _id;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public int getContentLength() {
        return contentLength;
    }

    public void setContentLength(int contentLength) {
        this.contentLength = contentLength;
    }

    public int getCurrentLength() {
        return currentLength;
    }

    public void setCurrentLength(int currentLength) {
        this.currentLength = currentLength;
    }

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    @Override
    public String toString() {
        return "DownloadInfo{" +
                "_id=" + _id +
                ", url='" + url + '\'' +
                ", contentLength=" + contentLength +
                ", currentLength=" + currentLength +
                ", filePath='" + filePath + '\'' +
                ", fileName='" + fileName + '\'' +
                '}';
    }
}
